apiVersion: kubeadm.k8s.io/v1beta2
bootstrapTokens:
- groups:
  - system:bootstrappers:kubeadm:default-node-token
  token: wise2c-breeze-token
  ttl: 0s
  usages:
  - signing
  - authentication
kind: InitConfiguration
localAPIEndpoint:
  advertiseAddress: 127.0.0.1
  bindPort: 6443
nodeRegistration:
  criSocket: /var/run/dockershim.sock
  taints:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
---
apiServer:
  certSANs:
  - {{ endpoint.split(':')[0] }}
  extraArgs:
    feature-gates: LocalStorageCapacityIsolation=true
    runtime-config: batch/v2alpha1=true
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta2
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: {{ endpoint }}
controllerManager:
  extraArgs:
    feature-gates: LocalStorageCapacityIsolation=true
dns:
  type: CoreDNS
etcd:
  external:
    caFile: /etc/etcd/pki/ca.pem
    certFile: /etc/etcd/pki/etcd.pem
    endpoints:
{% for host in groups['etcd'] %}
    - https://{{ host }}:2379
{% endfor %}
    keyFile: /etc/etcd/pki/etcd-key.pem
imageRepository: {{ registry_endpoint }}/{{ registry_project }}
kind: ClusterConfiguration
kubernetesVersion: {{ kubernetes_version }}
networking:
  dnsDomain: cluster.local
  podSubnet: 10.244.0.0/16
  serviceSubnet: 10.96.0.0/12
scheduler:
  extraArgs:
    feature-gates: LocalStorageCapacityIsolation=true
